package fr.umlv.m2.uwp2011.persistence.sujet;

import java.io.Serializable;
import java.util.Iterator;
import java.util.List;

import fr.umlv.m2.uwp2011.persistence.matiere.Matiere;

@SuppressWarnings("serial")
public class Sujet implements Serializable {

	private Long id;
	
	private String type; // TD, TP, COURS, EXAM, PROJET
	public static final String COURS = "COURS";
	public static final String TD = "TD";
	public static final String TP = "TP";
	public static final String PROJET = "PROJET";
	public static final String EXAM = "EXAM";
	
	private String titre;
	
	private Matiere matiere; 
	
	private String description;
	
	private List<Link> links;	
	
	private List<Note> notes;

	public String getTitre() {
		return titre;
	}

	public void setTitre(String titre) {
		this.titre = titre;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public void setLinks(List<Link> links) {
		this.links = links;
	}

	public Iterator<Link> iteratorLinks() {
		return links.iterator();
	}

	public void setNotes(List<Note> notes) {
		this.notes = notes;
	}

	public Iterator<Note> iteratorNotes() {
		return notes.iterator();
	}

	public void setMatiere(Matiere matiere) {
		this.matiere = matiere;
	}

	public Matiere getMatiere() {
		return matiere;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}
}
